<Project Sdk="Microsoft.NET.Sdk.Web">

    <PropertyGroup>
        <TargetFramework>net8.0</TargetFramework>
        <Nullable>enable</Nullable>
        <ImplicitUsings>enable</ImplicitUsings>
        <InvariantGlobalization>true</InvariantGlobalization>
        <ApplicationIcon>wwwroot/favicon.ico</ApplicationIcon>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="Microsoft.Extensions.Hosting"/>
        <PackageReference Include="Microsoft.Extensions.Hosting.Systemd"/>
        <PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices"/>
        <PackageReference Include="Microsoft.Extensions.Logging"/>

        <PackageReference Include="NLog"/>
        <PackageReference Include="NLog.Schema"/>
        <PackageReference Include="NLog.Extensions.Logging"/>
        <PackageReference Include="NLog.Web.AspNetCore"/>
    </ItemGroup>

    <ItemGroup>
        <ProjectReference Include="..\..\Libs\AM.Web\AM.Web.csproj"/>
    </ItemGroup>

    <ItemGroup>
        <Content Update="wwwroot\**\*.*"
                 CopyToPublishDirectory="Always"
                 CopyToOutputDirectory="Always"
        />
        <Content Update="NLog.config"
                 CopyToOutputDirectory="Always"
                 CopyToPublishDirectory="Always"
        />
    </ItemGroup>

    <ItemGroup>
      <None Update="appsettings.json5">
        <CopyToOutputDirectory>Always</CopyToOutputDirectory>
      </None>
    </ItemGroup>

</Project>
